<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
	template="/WEB-INF/templates/template.xhtml">
	<ui:define name="content">
		<h1>Paises</h1>
		<h:form>
			<h:dataTable value="#{paisBean.allEntities}" var="pais"
				styleClass="table table-striped table-bordered table-condensed">
				<h:column>
					<f:facet name="header">Id</f:facet>
					<h:outputText value="#{pais.id}" />
				</h:column>

				<h:column>
					<f:facet name="header">Nombre</f:facet>
					<h:link outcome="edit.jsf?id=#{pais.id}" 
						value="#{pais.name}" />
				</h:column>
			</h:dataTable>
		</h:form>
		<h:link styleClass="btn btn-primary" outcome="create.jsf" value="Nuevo País" />
	</ui:define>
</ui:composition>